package com.breeze.components.mail.config;

import com.breeze.components.mail.service.MailExtendService;
import org.springframework.boot.autoconfigure.AutoConfiguration;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Bean;

/**
 * @author breeze
 */
@AutoConfiguration
@ConditionalOnProperty("spring.mail.username")
public class MailConfig {

  @Bean
  public MailExtendService mailExtendService() {
    return new MailExtendService();
  }
}
